how to make a program that is output is like this:
2x1=2
2x2=4
2x3=6
2x4=8
2x5=10
2x6=12
2x7=14
2x8=16
2x9=18
2x10=20

and if the user press any key,without going to your codes
it will turn to..

3x1=3
3x2=6
3x3=9
and so on ..
please help me
using any loop specially for loop